Skip to content

refactor(runtime-alerts): Re-home legacy alert package#1169

Merged
leumor merged 1 commit intodevelopfrom
bugfix/runtime-alerts-package-rehome-prep
Mar 25, 2026
Merged

refactor(runtime-alerts): Re-home legacy alert package#1169
leumor merged 1 commit intodevelopfrom
bugfix/runtime-alerts-package-rehome-prep

Conversation

@leumor
Copy link
Collaborator

@leumor leumor commented Mar 24, 2026

Summary

  • move the legacy network.crypta.node.useralerts cluster into network.crypta.runtime.alerts
  • move UserAlertManagerStoreAlertSink alongside the alert cluster and update main/test references, Javadocs, and SpotBugs excludes
  • add root-build stale-output pruning so non-clean builds no longer package deleted node.useralerts classes into cryptad.jar

How to test

  • ./gradlew compileJava compileTestJava
  • ./gradlew test --tests 'network.crypta.runtime.alerts.*' --tests 'network.crypta.node.PeerAlertCoordinatorTest' --tests 'network.crypta.node.subsystem.NodeServicesSubsystemTest' --tests 'network.crypta.node.subsystem.NodeStorageSubsystemTest' --tests 'network.crypta.runtime.endpoints.ClientEndpointsTest' --tests 'network.crypta.runtime.admin.LegacyWelcomeActionPortTest' --tests 'network.crypta.clients.http.UserAlertsToadletTest' --tests 'network.crypta.node.updater.NodeUpdateManagerTest' --tests 'network.crypta.node.updater.UpdateOverMandatoryManagerTest'
  • ./gradlew buildJar
  • rg -n "network\\.crypta\\.node\\.useralerts|network\\.crypta\\.node\\.runtime\\.UserAlertManagerStoreAlertSink" .

Notes

  • buildJar was verified against a dirty incremental output state to confirm the legacy alert classes are pruned from both build/classes/java/main and build/libs/cryptad.jar.
  • The remaining compile warning in LongTermPushRepullTestTest is pre-existing and unrelated to this change.

Move the legacy user alert cluster and its package-local tests from network.crypta.node.useralerts into network.crypta.runtime.alerts, and relocate UserAlertManagerStoreAlertSink alongside them.

Update main-source and test references, Javadocs, and SpotBugs exclusions to the new package, and add root-build stale-output pruning so non-clean builds stop packaging deleted node.useralerts classes into cryptad.jar.
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@leumor leumor merged commit 03382ad into develop Mar 25, 2026
7 of 8 checks passed
@leumor leumor deleted the bugfix/runtime-alerts-package-rehome-prep branch March 25, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant